import { createRequest } from '/@/api/service';
const module = 'ib/base/v1/sysuser/SysUserApi/';

/**
 * @function 用户修改所在区域
 * @param data
 * @param header
 * @returns {Promise}
 */
function UPDATE_AREA(
  data: SysUserApi.UpdateAreaReq,
  header: object = {},
): Promise<SysUserApi.UpdateAreaResp> {
  return createRequest(`${process.env.APP_API_URL}${module}updateArea`, data, header, 'POST');
}
/**
 * @function 查询用户所在区域
 * @param data
 * @param header
 * @returns {Promise}
 */
function QUERY_USER_AREA(
  data: SysUserApi.BaseReq,
  header: object = {},
): Promise<SysUserApi.QueryUserAreaResp> {
  return createRequest(`${process.env.APP_API_URL}${module}queryUserArea`, data, header, 'POST');
}

export { UPDATE_AREA, QUERY_USER_AREA };
